package cc.mrbird.febs.activity.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;

import cc.mrbird.febs.common.converter.TimeConverter;
import lombok.Data;

/**
 * 活动白名单表 Entity
 *
 * @author Lord
 * @date 2020-06-06 16:24:04
 */
@Data
@TableName("t_activity_white")
@Excel("活动白名单表")
public class ActivityWhite implements Serializable {

    private static final long serialVersionUID = 337616503327420161L;

    /**
     * 活动白名单 ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 银行ID
     */
    @TableField("bank_id")
    private Integer bankId;

    /**
     * 活动ID
     */
    @TableField("activity_id")
    private Integer activityId;

    /**
     * 属性类型：1->卡号;2->手机号;3->身份证号
     */
    @TableField("att_type")
    @ExcelField(value = "属性类型", writeConverterExp = "1=卡号,2=手机号,2=身份证号")
    private Integer attType;

    /**
     * 属性值
     */
    @TableField("att_value")
    @ExcelField(value = "属性值")
    private String attValue;

    /**
     * 删除状态：0->未删除；1->已删除
     */
    @TableField("delete_status")
    private Integer deleteStatus;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    private Date createTime;

}
